﻿using Microsoft.EntityFrameworkCore;
using RBAC.LuFang.Domain;
using RBAC.LuFang.Repository.lnterface;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using System.Text;
using System.Threading.Tasks;

namespace RBAC.LuFang.Repository.lmpl
{
    public class MenuRepository : BaseRepository<MenuInfo>, IMenuRepository
    {
        public MenuRepository(EFCoreContext corecontext) : base(corecontext)
        {
        }
        public async Task<List<MenuInfo>> Get(Expression<Func<MenuInfo, bool>> expre)
        {
            return await base.Get(expre);
        }
        //删除 删除实体
        public Task<int> Del(MenuInfo id)
        {
            return base.Del(id);
        }
        //添加
        public async Task<int> GetAddAsync(MenuInfo t)
        {
            return await base.GetAddAsync(t);
        }
        //显示 不带异步
        public List<MenuInfo> GetAll()
        {
            return base.GetAll();
        }

        //显示 带异步
        public async Task<List<MenuInfo>> GetAllAsync()
        {
            return await base.GetAllAsync();
        }
        //反填
        public async Task<MenuInfo> GetByidAsync(int id)
        {
            return await base.GetByidAsync(id);
        }
        //修改
        public async Task<int> GetUpd(MenuInfo t)
        {
            return await base.GetUpd(t);
        }









    }
}
